package com.itqf.proxy.dynimic_cglib;

import com.itqf.proxy.dynimic_cglib.factory.MyServiceProxyFactory;
import com.itqf.proxy.dynimic_cglib.impl.ProductServiceImpl;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/9/28
 * @Time: 下午5:33
 */
public class TestServiceProxy {
    public  static  void  main(String[]args){

        //得到代理对象
        ProductServiceImpl productService = MyServiceProxyFactory.createProxyService();

        productService.addProduct();

        productService.deleteProduct("1");

        int i =  productService.updateProduct();


    }

}
